package com.bac.rentmap.ad.crawler;

import java.io.IOException;
import java.util.List;

/**
 * Crawls ads from web.
 * 
 * @author Andrew Osipenko
 * 
 * @param <T>
 */
public interface AdCrawler<T extends CrawledAd> {
	/**
	 * Crawls ads from web.
	 * 
	 * @param context
	 *            restricts crawling
	 * @return not null list
	 * @throws IOException
	 */
	List<T> crawl(Context context) throws IOException;
}
